﻿using System.Data;
using DAL;
namespace BLL
{
    public class Order_Buy_BLL
    {
        public static Order_Buy_DAL cls = new Order_Buy_DAL();
        #region[Get-Data]
        public DataTable GetOrderBuy(string keywords)
        {
            return cls.GetOrderBuy(keywords);
        }
        public DataTable GetOrderBuyEdit(int id)
        {
            return cls.GetOrderBuyEdit(id);
        }
        public DataTable GetOrderBuyOrderOfOrder(int id)
        {
            return cls.GetOrderBuyOrderOfOrder(id);
        }
        public DataTable GetOrderBuyDetail(int id)
        {
            return cls.GetOrderBuyDetail(id);
        }
        public DataTable GetOrderBuyFillterDate(string DateBegin, string DateEnd)
        {
            return Order_Buy_DAL.GetOrderBuyFillterDate(DateBegin, DateEnd);
        }
        #endregion

        #region[Insert-Update-Delete]
        //public static bool InsertOrderBy(ET.Order_Buy_ET obj)
        //{
        //    return cls.InsertOrderBy(obj);
        //}
        //public static bool UpdateOrderBuy(ET.Order_Buy_ET obj)
        //{
        //    return cls.UpdateOrderBuy(obj);
        //}
        //public static bool DeleteOrderBuy(int id)
        //{
        //    return cls.DeleteOrderBuy(id);
        //}
        //public static bool DeleteOrderDetailTempAll(int id)
        //{
        //    cls.DeleteOrderDetailTempAll(id);
        //    return true;
        //}
        #endregion

        #region[Search-Fillter]
        public DataTable SearchOrder(string keywords)
        {
            return cls.SearchOrder(keywords);
        }
        #endregion
    }
}